@echo off

set PATH_TEXTURE_PACKER=D:/ProgrammingTools/GameEngine/Tools/TexturePacker
rem set PATH_TEXTURE=D:/ProgrammingTools/GameEngine/Tools/TexturePacker/MyExample/unit-br-riflemen-lz_melee
rem set NAME=unit-br-riflemen-lz_melee
rem set PATH_OUT=D:/ProgrammingTools/GameEngine/Tools/TexturePacker/MyExample/unit-br-riflemen-lz_melee

set PATH_TEXTURE=%1
set NAME=%2
set PATH_OUT=%3

echo PATH_TEXTURE_PACKER:
echo %PATH_TEXTURE_PACKER%
echo .
echo PATH_TEXTURE:
echo %PATH_TEXTURE%
echo .
echo NAME:
echo %NAME%
echo .
echo PATH_OUT:
echo %PATH_OUT%
echo .

%PATH_TEXTURE_PACKER%/TexturePacker.exe ^
--format cocos2d ^
--data %PATH_TEXTURE%/%NAME%.plist ^
--texture-format png ^
--sheet %PATH_TEXTURE%/%NAME%.png ^
--texturepath %PATH_TEXTURE% ^
--dpi 72 ^
--opt RGBA8888 ^
--max-width 16384 ^
--max-height 16384 ^
--size-constraints POT ^
--pack-mode Best ^
--scale 1 ^
--scale-mode Smooth ^
--algorithm Basic ^
--basic-sort-by Name ^
--basic-order Ascending ^
--border-padding 2 ^
--shape-padding 2 ^
--inner-padding 0 ^
--extrude 0 ^
--common-divisor-x 1 ^
--trim-mode Trim ^
--trim-threshold 1 ^
%PATH_OUT%

rem pause